home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / utilit~1 / stlogin4.lzh / UX_MISC.H < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-28  |  951 b   |  38 lines

  1. /* Miscellaneous functions. Kees Lemmens; Aug 1992
  2.  
  3.    Any questions or suggestions about this program can be send to:
  4.    lemmens@dv.twi.tudelft.nl
  5. */
  6.  
  7. #ifndef __UX_MISC_H
  8. #define __UX_MISC_H
  9.  
  10. #ifdef MINT
  11. # include <mintbind.h>
  12. #endif
  13. #include <pwd.h>
  14. #include <time.h>
  15.  
  16. #define PATH     "u:\\bin,u:\\usr\\bin"
  17. #define DEV        "u:\\dev\\"
  18. #define ETC        "u:\\etc\\"
  19. #define TMPPW    ETC "passwd.nw"
  20. #define SYSLOG  ETC "syslog"
  21. #define CONSOLE DEV "console"
  22.  
  23. #define WELCOME    ETC "welcome"    /* request from Jeroen Berger ! */
  24.  
  25. #define sleep(s) Mysleep(s)        /* more efficient under MINT */
  26.  
  27. int  RunningMint(void);
  28. void Delay(clock_t ticks);    /* 1 tick =1/1000 sec */
  29. void Mysleep(unsigned seconds);
  30. char *ux2dos(char *string);
  31. void *encrypt(char *passwd);
  32. int check_pw(char *login_pw,struct passwd *pwent);
  33. void tty_flush(void);
  34. void Put(char *cmd);
  35. void Get(char *str,int nr,int mode);
  36. int mk_devnm(char *dev,char *arg);
  37.  
  38. #endif